<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2019/6/4
 * Time: 14:33
 */

namespace app\admin\controller;


use think\Controller;
use think\facade\Session;

class Base extends Controller
{

    public function initialize()
    {
        if(!Session::get('admin_id')||Session::get('admin_id')<1){
            $this->redirect(url("login/login"));
        }
    }

}